package com.gjzhao.fmmall;

//import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * mybatis需要在启动类配置扫描的接口路径[保证启动类所在包一定在实体类和接口所在包的上层，这样才能保证他们都被扫描到]
 * @author gjzhao
 */
@SpringBootApplication
@MapperScan("com.gjzhao.fmmall.dao")
@EnableScheduling //开启quartz定时任务[启动应用后，quartz就会按照配置好的定时任务去执行]，SpringTask框架使用时也需要开启
public class ApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(ApiApplication.class, args);
    }

}
